package com.lht.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 贷款产品表实体
 *
 * @author ZhengZhanWu
 * @date 2020-01-06 23:44:52
 */
@Data
@NoArgsConstructor
@TableName("lst_product")
public class ProductEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 创建时间
     */
    private Date createAt;
    /**
     * 更新时间
     */
    private Date updateAt;
    /**
     * 是否删除   0:未删除(默认)   1:删除
     */
    private String isDelete;
    /**
     * 标题,产品名称
     */
    private String title;
    /**
     *  产品内容
     */
    private String details;
    /**
     * 最大额度，单位元
     */
    private Integer maxQuota;
    /**
     * 贷款年限
     */
    private Integer years;
    /**
     * 税务等级，多个的话逗号隔开
     */
    private String taxLevel;
    /**
     * 贷款银行id
     */
    private Long loanBankId;

    @TableField(exist = false)
    private String loanBankName;
    /**
     * 创建者用户id
     */
    private Long createUserId;
    /**
     * 更新者用户id
     */
    private Long updateUserId;

    private BigDecimal loanRate;

    public static final String ID = "id";
    public static final String CREATE_AT = "create_at";
    public static final String UPDATE_AT = "update_at";
    public static final String TITLE = "title";
    public static final String DETAILS = "details";
    public static final String MAX_QUOTA = "max_quota";
    public static final String YEARS = "years";
    public static final String TAX_LEVEL = "tax_level";
    public static final String LOAN_BANK_ID = "loan_bank_id";
    public static final String CREATE_USER_ID = "create_user_id";
    public static final String UPDATE_USER_ID = "update_user_id";
    public static final String LOAN_RATE="loan_rate";

}
